package com.example.mylibrary.data;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;

/**
 * Created by Administrator on 2018/2/26.
 */
@Entity
public class ByteImg {
    //图片
    @Id(autoincrement = true)
    private Long imgId;
    @Unique
    private String studentCode;

    private byte[] byteImg;
    private byte[] imgFeature;


    @Generated(hash = 1526711524)
    public ByteImg(Long imgId, String studentCode, byte[] byteImg,
            byte[] imgFeature) {
        this.imgId = imgId;
        this.studentCode = studentCode;
        this.byteImg = byteImg;
        this.imgFeature = imgFeature;
    }

    @Generated(hash = 26219280)
    public ByteImg() {
    }


    public Long getImgId() {
        return imgId;
    }

    public void setImgId(Long imgId) {
        this.imgId = imgId;
    }

    public String getStudentCode() {
        return studentCode;
    }

    public void setStudentCode(String studentCode) {
        this.studentCode = studentCode;
    }

    public byte[] getByteImg() {
        return byteImg;
    }

    public void setByteImg(byte[] byteImg) {
        this.byteImg = byteImg;
    }

    public byte[] getImgFeature() {
        return this.imgFeature;
    }

    public void setImgFeature(byte[] imgFeature) {
        this.imgFeature = imgFeature;
    }
}
